import { Profile } from "@/types/user";
const KEY = 'rabbit-vue3-75'

// 提供存储/获取/删除 Profile 的方法
export function setProfile(profile: Profile) {
  localStorage.setItem(KEY, JSON.stringify(profile))
}

export function getProfile() {
  return JSON.parse(localStorage.getItem(KEY) || '{}')
}

export function removeProfile() {
  localStorage.removeItem(KEY)
}
